package main

import "net/http"
import "apitool/api"

import "log"

const addr = ":9001"

func main() {
	srv := &http.Server{Addr: addr}
	http.HandleFunc("/tool/ip", api.GetIp)
	log.Printf("start at %s\n", addr)
	log.Fatal(srv.ListenAndServe().Error())
}
